package com.example.zhaojianxu.signin.signIn.sign.adapter

import android.content.Intent
import android.support.v7.widget.RecyclerView
import android.view.View
import com.example.zhaojianxu.signin.signIn.sign.view.SignDetailActivity
import kotlinx.android.synthetic.main.item_sign.view.*

class SignVH(var rootView: View): RecyclerView.ViewHolder(rootView) {

    fun bindData(){

        rootView.item_sign_class_name
        rootView.item_sign_teacher_name
        rootView.item_sign_time

        itemView.setOnClickListener {
            val intent = Intent(rootView.context,SignDetailActivity::class.java)
            rootView.context.startActivity(intent)
        }
    }
}